<div class="header"> Page <span class="pagenum"></span> </div> <div class="footer"> Page <span class="pagenum"></span> </div>